﻿using BootstrapBlazor.Components;
using Color = BootstrapBlazor.Components.Color;

namespace MauiProject.Model.LinkFilePageModel;

public class MyMessageOption {
    public MessageOption Option = new() {
        IsAutoHide = true,
        Delay = 2000,
    };

    public MessageOption GetSuccessOption(string text) {
        Option.Content = text;
        Option.Color = Color.Success;
        return Option;
    }

    public MessageOption GetErrorOption(string text) {
        Option.Content = text;
        Option.Color = Color.Danger;
        return Option;
    }

    public MessageOption GetSecondaryOption(string text) {
        Option.Content = text;
        Option.Color = Color.Secondary;
        return Option;
    }
}